import {realURL} from "../request/android.js"

export function querySignCodeDataRe(studentId){
	let rurl = realURL("/attendance-records/querySignCodeData?studentId="+studentId)
	return uni.request({
		url:rurl,
		method:"GET"
	})
}

export function submitSignCodeRe(dataVO,code){
	return new Promise ((resolve,reject)=>{
		let rurl = realURL("/attendance-records/updateSignCodeStatus?code="+code)
		uni.request({
			url:rurl,
			data:dataVO,
			method:"POST",
			success(res) {
				resolve(res)
			},
			fail(err){
				reject(err)
			}
		})
	})
}